package com.qf.osmuser.user.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author TianWenHe
 * @date 2025/6/9
 * @desc 用户信息展示类，用于与数据库表字段映射
 */
@Data
@Builder
public class UserInfoVO implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;

    private String username;

    private String phone;

    private String realName;

    private String avatar;

    private String cardNo;

    private String email;

    private String gender;

    private Integer pid;

    private String inviteCode;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birth;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private BigDecimal userMoney;

    private Integer point;
}
